package DatabaseAccess;

import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class ConvertStringToDate {

    public Date convertStringToDate(String _Date) {
        DateFormat myDateFormat = new SimpleDateFormat("dd/MM/yyyy");
        Date date = null;

        try {
            date = myDateFormat.parse(_Date);
        } catch (ParseException e) {
            System.out.println("Invalid Date Parser Exception ");
            e.printStackTrace();
        }

        return date;
    }
}
